package com.lxt.service;

import com.lxt.pojo.BO.ShopCartBO;
import com.lxt.pojo.BO.SubmitOrderBO;
import com.lxt.pojo.OrderStatus;
import com.lxt.pojo.VO.OrderVO;

import java.util.List;

/**
 * @author IvXuTao
 * @Package com.lxt.service
 * @date 2022/5/24 19:51
 */
public interface OrderService {


    /**
     * 用于创建订单相关信息
     *
     * @param submitOrderBO
     */
    public OrderVO createOrder(List<ShopCartBO> shopCartList, SubmitOrderBO submitOrderBO);

    /**
     * 修改订单状态
     *
     * @param orderId
     * @param orderStatus
     */
    public void updateOrderStatus(String orderId, Integer orderStatus);

    /**
     * 查询订单状态
     *
     * @param orderId
     * @return
     */
    public OrderStatus queryOrderStatusInfo(String orderId);

    /**
     * 关闭超时未支付订单
     */
    public void closeOrder();
}
